:root {
  /* 存储全局变量 */
  --pink: #ea21a2;
}

* {
  margin: 0;
  padding: 0;
}
/* 引入外部文字 */
/* @font-face {
        font-family: ;
        src: url();
    } */

body {
  height: 100vh;
  background-color: #fad95b;
}

@keyframes move {
  from {
    background-position-x: 0;
  }
  to {
    background-position-x: 100%;
  }
}

.btn {
  /* 位置 */
  display: block;
  /* 块级元素水平会 margin 占满 */
  margin: 100px auto;
  /* 宽高 */
  width: 500px;
  height: 100px;
  /* 边框 */
  border-color: 4px solid #ea21a2;
  border-radius: 50px;
  /* 文字 */
  font-size: 30px;
  font-family: Tahoma, Geneva, sans-serif;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 2px;
  box-shadow: 5px 5px 5px red;
  /* 渐变背景 */
  background: linear-gradient(
    to right,
    #ea21a2,
    yellow,
    #27a9ff,
    #ea21a2,
    yellow,
    #27a9ff,
    #27a9ff
  );
  background-size: 1200%;
}

.btn:hover {
  animation: move 4s ease-in 1 forwards;
  cursor: pointer;
}
